package DP.decoration.common.decorator;

import DP.decoration.common.component.Component;

/**
 * @author msi
 * 抽象装饰者
 */
public abstract class Decorator extends Component {

    private Component component=null;

    public Decorator(Component component){
        this.component=component;
    }

    @Override
    public void operate() {
        this.component.operate();
    }
}
